home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
jaz_clib.arc
/
JZSCRON.C
< prev
next >
Wrap
Text File
|
1989-04-09
|
844b
|
28 lines
#include <jaz.h>
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzscron.c │
│Turn the display screen on after a previous call to jzscroff(). │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
jzscron()
{
#define CPORT 0x3D8 /* address of mode select register */
#define MPORT 0x3B8 /* address of CRT control port */
unsigned int PORTADDR; /* hold address of port */
unsigned int wport; /* hold original contents */
if (MEMB(0x40,0x49) == 7) /* mono card */
PORTADDR = MPORT;
else
PORTADDR = CPORT;
wport = inp(PORTADDR); /* get original contents */
outp(PORTADDR,wport | 8); /* enable the display bit */
}